#include "LogbinaryTestSuite.h"
#include <cstddef>
#include <cstdint>
#if __cplusplus >= 201402L

#    include <gtest/gtest.h>
#endif

#include "Logger.h"
#if __cplusplus >= 201402L

#    include "LoggerNew.h"
using namespace xncc;

TEST_F(LogBinaryTestSuitie, vaild_arg)
{
    EXPECT_TRUE(std::is_standard_layout<int>::value);
    EXPECT_TRUE(std::is_trivially_copyable<int>::value);
    constexpr auto ret = LogbinaryType<int, double>::value;
    EXPECT_TRUE(ret);
    auto ret1 = LogbinaryType<>::value;
    EXPECT_FALSE(ret1);
    auto ret2 = LogbinaryType<int>::value;
    EXPECT_TRUE(ret2);
    auto ret3 = LogbinaryType<std::string>::value;
    EXPECT_FALSE(ret3);
    EXPECT_EQ(xncc::calcArgsSize("abcdef"), 7);
}

#endif